package com.cloud.note.service;

import com.cloud.note.dto.attachment.AttachmentResponse;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface AttachmentService {

    AttachmentResponse uploadAttachment(String userId, String noteId, MultipartFile file, String type)
            throws IOException;

    List<AttachmentResponse> getNoteAttachments(String userId, String noteId);

    void deleteAttachment(String userId, String attachmentId) throws IOException;
}